package com.gxa.learning.pc.mapper;

import com.gxa.learning.core.pojo.ProjectApply;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface ProjectApplyMapper extends Mapper<ProjectApply> {

    /**
     * 返回培训项目的学员信息
     */
    List<Map<String, Object>> getStudents(Long pid, String name, String company, String position, Integer start, Integer limit);

    /**
     * 修改学员申请的状态
     */
    Integer setApplyStatus(Long applyId, Integer status);


    /**
     * 获取所有的申请记录
     */
    List<Map<String, Object>> getAllApply(Long pid, Integer offset, Integer limit);

    /**
     * 删除一个学员
     */
    Integer deleteApply(Long id);

}
